package com.gxa.meiye.core.pojo.shopManagement;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.ibatis.type.Alias;

/**
 * <p>
 * 订单
 * </p>
 *
 * @author chen
 * @since 2022-07-25
 */
@TableName("t_order")
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "Order对象", description = "订单")
@Alias("Orderd")
public class Order implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("订单号")
    private String orderNumber;

    @ApiModelProperty("消费者app中的客户预约时间")
    private LocalDateTime time;

    @ApiModelProperty("关联项目得到图片和项目名称")
    private Integer projectId;

    @ApiModelProperty("根据客户的id可以查他的电话号码和姓名 优惠金额")
    private String userId;

    @ApiModelProperty("订单状态")
    private Integer status;

    @ApiModelProperty("订单创建时间")
    private LocalDateTime createdTime;

    @ApiModelProperty("关联的门店id")
    private String shopId;

    @ApiModelProperty("关联的美疗师id")
    private String therapistId;

    @ApiModelProperty("原因")
    private String reasonId;

    @ApiModelProperty("内容")
    private String reasonExplain;

    @ApiModelProperty("流水号")
    private String serialNumber;

    @ApiModelProperty("支付金额")
    private BigDecimal payMoney;

    @ApiModelProperty("退款")
    private BigDecimal returnMoney;

    @ApiModelProperty("订单金额")
    private BigDecimal getMoney;

    @ApiModelProperty("下单时间")
    private LocalDateTime payTime;

    @ApiModelProperty("退款时间")
    private LocalDateTime returnTime;

    @ApiModelProperty("结算时间")
    private LocalDateTime getTime;

    private String startTime;

    private String endTime;

}
